package com.md.api;

import com.md.model.system.CommonResult;
import com.md.request.ReplacementTokenRequest;
import com.md.response.ReplacementTokenResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Api("授权")
public interface OauthApi {
  String PATH_PREFIX = "/oauth";

  /**
   * 置换token
   *
   * @return 操作结果
   */
  @PostMapping(PATH_PREFIX + "/replacement")
  @ApiOperation("置换token")
  CommonResult<ReplacementTokenResponse> replacement(@RequestBody ReplacementTokenRequest request);
}
